package com.liit.module.entity;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

public class OnlineLink implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 *
	 * @mbggenerated
	 */
	private Integer id;

	/**
	 * 标题
	 *
	 * @mbggenerated
	 */
	@NotBlank(message = "标题不能为空")
	private String title;

	/**
	 * 描述
	 *
	 * @mbggenerated
	 */
	private String content;

	/**
	 * 链接地址
	 *
	 * @mbggenerated
	 */
	@NotBlank(message = "购买链接不能为空")
	private String buyLink;

	/**
	 * 链接图片 t_files.id
	 *
	 * @mbggenerated
	 */
	@NotNull(message = "logo不能为空")
	private Integer imgLogo;

	/**
	 * 排序
	 */
	private Integer sort;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getBuyLink() {
		return buyLink;
	}

	public void setBuyLink(String buyLink) {
		this.buyLink = buyLink;
	}

	public Integer getImgLogo() {
		return imgLogo;
	}

	public void setImgLogo(Integer imgLogo) {
		this.imgLogo = imgLogo;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
}